<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:baseData" />
    <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
            <h5>{:L('workflow')}</h5>
            <a href="javascript:add();" class="label label-info">{:L('add_new')}</a>
        </div>
        <div class="widget-content nopadding">
            <table class="table table-bordered table-striped with-check">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>{:L('alias')}</th>
                        <th>{:L('name')}</th>
                        <th>{:L('logic_files_dir')}</th>
                        <th>{:L('memo')}</th>
                        <th>{:L('operation')}</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="l">
                        <tr>
                            <td>{$l.id}</td>
                            <td>{$l.alias}</td>
                            <td>{$l.name}</td>
                            <td>
                                <span class="badge badge-info">
                                    <i class="icon icon-folder-open"></i> 
                                    @.Workflow.{$l.workflow_file}.*
                                </span>
                            </td>
                            <td>{$l.memo}</td>
                            <td>
                                <a href="{:U('/HOME/WorkflowNode/index/workflow_id/'.$l[id])}" class="btn btn-primary btn-mini">{:L('workflow_node')}</a>
                                <a href="javascript:edit({$l.id});" class="btn btn-mini btn-primary">{:L('edit')}</a>
                                <!--<a href="javascript:del({$l.id});" class="btn btn-mini btn-danger">{:L('delete')}</a>-->
                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
        </div>
    </div>
</block>